package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.business.legaldocuments;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class LegaldocumentsService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(LegaldocumentsService.class);
	

	/**
	 * 合法性文件列表
	 * @param
	 * @return
	 */
	public RespEntity legaldocumentsListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","legaldocumentsListPage","legaldocuments");
	}

	/**
	 * 合法性文件详情
	 * @param
	 * @return
	 */
	public RespEntity legaldocumentsDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","legaldocumentsDetail","legaldocuments");
	}

	/**
	 * 合法性文件新增
	 * @param
	 * @return
	 */
	public RespEntity legaldocumentsAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","legaldocumentsAdd","legaldocuments");
	}

	/**
	 * 合法性文件修改
	 * @param
	 * @return
	 */
	public RespEntity legaldocumentsUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","legaldocumentsUpdate","legaldocuments");
	}

	/**
	 * 合法性文件删除
	 * @param
	 * @return
	 */
	public RespEntity legaldocumentsDelete(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","legaldocumentsDelete","legaldocuments");
	}

}
